Skip to main content

App Common issues

Issue #1

/Users/primocys/.pub-cache/hosted/pub.dev/place_picker-0.10.0/lib/widgets/search_input.dart:60:65: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../../SDK/flutter_3.27.1/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'. Icon(Icons.search, color: Theme.of(context).textTheme.bodyText1?.color),

Solution:

If you facing error like this in whoxa code then you need to replace boxyText1 to bodyLarge in search_input.dart.

Issue #2

/Users/primocys/.pub-cache/hosted/pub.dev/place_picker-0.10.0/lib/widgets/rich_suggestion.dart:35:89: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../../SDK/flutter_3.27.1/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'. TextSpan(text: boldText, style: style.copyWith(color: Theme.of(context).textTheme.bodyText1?.color)),

Solution:

If you facing error like this in whoxa code then you need to replace boxyText1 to bodyLarge in rich_suggestion.dart. ^^^^^^^^^

Issue #3

/Users/primocys/.pub-cache/hosted/pub.dev/flutter_platform_widgets-3.3.5/lib/src/platform_text_field.dart:578:30: Error: The argument type 'bool?' can't be assigned to the parameter type 'bool' because 'bool?' is nullable and 'bool' isn't. enabled: data?.enabled ?? enabled,

Solution:

enabled: enabled Replace To enabled: enabled ?? false, in platform_text_field.dart

Issue #4

/Users/primocys/.pub-cache/hosted/pub.dev/enough_platform_widgets-0.7.4/lib/src/platform/decorated_platform_textfield.dart:536:20: Error: The argument type 'bool?' can't be assigned to the parameter type 'bool' because 'bool?' is nullable and 'bool' isn't. enabled: enabled,

Solution:

enabled: enabled Replace To enabled: enabled ?? false, in decorated_platform_textfield.dart